package org.colafries.admin.entity.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author colafries
 * @version v1.0
 * @ClassName QueryParam
 * @Description
 * @date Created in 2024/4/12
 **/
@Data
@TableName("t_custom_query_param")
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class CustomQueryParam {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id ;
    /** 数据模型id */
    @TableField("data_model_id")
    private Integer dataModelId ;
    /** 查询用户id */
    @TableField("query_user_id")
    private Integer queryUserId ;
    /** 自定义查询参数 */
    @TableField("query_param_json")
    private String queryParamJson ;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    /**
     * 自定义查询参数备注
     */
    @TableField("remark")
    private String remark;
}
